<!--
 * @Descripttion : 
 * @Autor        : Lilong
 * @Date         : 2022-09-30 11:31:29
 * @LastEditTime : 2022-09-30 11:31:35
 * @FilePath     : \表单控件绑定\v-model和组件\第二种(用于自定义输入组件上)\改变默认的属性名称\配合计算属性一起使用\第三种：v-model和script setup\CustomInput.vue
-->
<script setup>
    import {computed} from 'vue'
    const props = defineProps(["test"])
    const emits = defineEmits(["update:test"])
    const valueComputed = computed({
      get(){
        return props.test
      },
      set(val){
        emits('update:test', val)
      }
    })
</script>
    
<template>
    <input v-model="valueComputed">
</template>